package com.gmail.wangzdl.swing.panel;

import javax.swing.JPanel;
import java.awt.BorderLayout;
import javax.swing.JToolBar;
import java.awt.FlowLayout;
import javax.swing.JButton;
import javax.swing.JTextField;

public class BaseDetailsPane extends JPanel {
	private JTextField textField;

	/**
	 * Create the panel.
	 */
	public BaseDetailsPane() {
		setLayout(new BorderLayout(0, 0));
		
		JPanel panel = new JPanel();
		FlowLayout flowLayout = (FlowLayout) panel.getLayout();
		flowLayout.setAlignment(FlowLayout.LEFT);
		add(panel, BorderLayout.NORTH);
		
		JToolBar toolBar = new JToolBar();
		panel.add(toolBar);
		
		JButton button_1 = new JButton("打印");
		toolBar.add(button_1);
		
		JButton button = new JButton("帮助");
		toolBar.add(button);
		
		JButton button_2 = new JButton("关闭");
		toolBar.add(button_2);
		
		JToolBar toolBar_1 = new JToolBar();
		panel.add(toolBar_1);
		
		JButton button_3 = new JButton("保存");
		toolBar_1.add(button_3);
		
		JButton button_10 = new JButton("删除");
		toolBar_1.add(button_10);
		
		JButton button_4 = new JButton("新增");
		toolBar_1.add(button_4);
		
		JToolBar toolBar_2 = new JToolBar();
		panel.add(toolBar_2);
		
		JButton button_6 = new JButton("首条");
		toolBar_2.add(button_6);
		
		JButton button_7 = new JButton("上一条");
		toolBar_2.add(button_7);
		
		JButton button_8 = new JButton("下一条");
		toolBar_2.add(button_8);
		
		JButton button_5 = new JButton("末条");
		toolBar_2.add(button_5);
		
		textField = new JTextField();
		toolBar_2.add(textField);
		textField.setColumns(10);
		
		JButton button_9 = new JButton("跳转");
		toolBar_2.add(button_9);

	}

}
